/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author yuhuafeng
 * @version 1.0
 * @date 2016-03-07
 */
package com.eyaomall.wxmanage.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.eyaomall.wxmanage.model.vo.ShopPaymentRecordVO;
import com.eyaomall.wxmanage.service.ShopPaymentRecordService;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;
/**
 * 缴费单
 * @author yuhuafeng
 * @date 2016-9-7
 */
@Controller
@RequestMapping("/shoppaymentrecord")
public class ShopPaymentRecordController {
	@Autowired
	private ShopPaymentRecordService  shopPaymentRecordService;
	
	/**
	 * 跳转至记录页
	 * @param data
	 * @return
	 */
	@RequestMapping("page")
	public String index(Map<String,Object> data){
		
		return "shoppaymentrecord/page";
	}
	
	/**
	 * 跳转至记录页
	 * @param data
	 * @return
	 */
	@RequestMapping("page_data")
	public @ResponseBody Pages<?> page_data(ShopPaymentRecordVO paymentVO,PageHTTPObject httpObject){
		paymentVO.setStatus("1");
		return shopPaymentRecordService.page(paymentVO,httpObject);
	}
}
